<!-- 学期院历管理 -->
<template>
  <div class="assessment-container">
    <div class="search-container" style="margin:0;padding-left:0">
      <div class="search-container-left" style="display: flex">
        <!-- <el-button type="success" icon="el-icon-plus" @click="addNewXq">添加新学期</el-button> -->
        <div
          class="cjrc-button"
          @click="addNewXq"
          style="width:130px"
        >
          <img src="../../../assets/classHours/icon-add.png" alt="" />
          <span style="margin-left: 5px;">添加新学期</span>
        </div>
      </div>
    </div>
    <div class="plan-entry-table-container">
      <el-table
        :data="tableData"
        style="width: 100%"
        class="xpaas-table-class"
        row-class-name="xpaas-row-class"
        cell-class-name="xpaas-cell-class"
        header-row-class-name="xpaas-header-row-class"
        header-cell-class-name="xpaas-header-cell-class"
      >
        <el-table-column
          prop="xqmc"
          label="学期名称"
          align="center"
          width="180"
        >
        </el-table-column>
        <el-table-column
          prop="xqszxn"
          label="学期所在学年"
          align="center"
          width="180"
        >
        </el-table-column>
        <el-table-column
          prop="xqxh"
          label="学期序号"
          align="center"
          width="180"
        >
        </el-table-column>
        <el-table-column
          prop="xqksrq"
          label="学期开始日期"
          align="center"
          width="180"
        >
        </el-table-column>
        <el-table-column
          prop="xqjsrq"
          label="学期结束日期"
          align="center"
          width="180"
        >
        </el-table-column>
        <el-table-column
          prop="jqjsrq"
          label="假期结束日期"
          align="center"
          width="180"
        >
        </el-table-column>
        <el-table-column
          prop="cz"
          label="操作"
          align="center"
          class-name=""
          label-class-name=""
        >
          <template slot-scope="{ row, $index }">
            <!-- <el-button type="success" icon="el-icon-edit" @click="editXq(row.id)">编 辑</el-button>
            <el-button type="danger" icon="el-icon-delete" @click="delOne(row.id)">删 除</el-button>
            <el-button type="primary" icon="el-icon-view" @click="lookCalendar(row.id)">查 看</el-button> -->
            <div class="lucj-import-button" @click="editXq(row.id)" style="display:inline-block;width: 90px;padding: 0;height: 28px;border:1px solid #02c86c;color: #02c86c;background: #f1fff8;">
              <img src="../../../assets/assessment/icon-plan-record-detail.png" alt="" />
              <span style="margin: 0 0 0 5px;">编 辑</span>
            </div>
            <div class="lucj-import-button" @click="delOne(row.id)" style="display:inline-block;width: 90px;padding: 0;margin-left:10px;height: 28px;border:1px solid #ff3819;background: #ffefef;">
              <img src="@/assets/assessment/删除.png" alt="" />
              <span style="margin: 0 0 0 5px;color: #ff3819;">删 除</span>
            </div>
            <div class="lucj-import-button" @click="lookCalendar(row)" style="display:inline-block;width: 90px;padding: 0;margin-left:10px;height: 28px;border:1px solid #51aef6;background: #f1f8fe;">
              <img src="../../../assets/assessment/icon-look.png" alt="" style="width:17px;height: 15px;" />
              <span style="margin: 0 0 0 5px;color: #51aef6">查 看</span>
            </div>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <div class="block">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page.sync="current"
        :page-sizes="[5,10, 20, 30]"
        :page-size="size"
        layout="total, sizes, prev, pager, next, jumper"
        :total="total"
      >
      </el-pagination>
    </div>
    <el-dialog
      :title="dialogTitle"
      :visible.sync="dialogVisible"
      class="manual-entry-container"
      width="1185px"
      @close="resetForm"
    >
      <div class="my-form-container" style="height: 100%;margin-bottom:50px">
        <el-form
          :model="formData"
          :rules="rules"
          ref="ruleForm"
          class="demo-ruleForm"
        >
          <el-form-item class="my-form-item" prop="xqmc">
            <div class="my-form-item-label">
              学期名称
              <span class="mustW">*</span>
            </div>
            <el-input v-model="formData.xqmc" placeholder="请输入学期名称" @blur="inputName"></el-input>
            <el-form-item class="my-form-item" prop="xqszxn">
              <div
                class="my-form-item-label"
              >
                学期所在学年
                <span class="mustW">*</span>
              </div>
              <el-select
                v-model="formData.xqszxn"
                placeholder="请选择学期所在学年"
                clearable
              >
                <el-option
                  v-for="(item) in xqxnList"
                  :key="item"
                  :label="item + '-' + Number(item+1)"
                  :value="item + '-' + Number(item+1)"
                >
                </el-option>
              </el-select>
              <!-- <el-input v-model="formData.xqszxn" type="number" placeholder="请输入学期所在学年"></el-input> -->
            </el-form-item>
          </el-form-item>
          <el-form-item class="my-form-item" prop="xqxh">
            <div class="my-form-item-label">
              学期序号
              <span class="mustW">*</span>
            </div>
            <el-select
                v-model="formData.xqxh"
                placeholder="请选择学期序号"
                clearable
              >
                <el-option
                  v-for="(item,index) in xqxhList"
                  :key="index"
                  :label="item.value"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            <!-- <el-input v-model="formData.xqxh" type="number" placeholder="请输入学期序号"></el-input> -->
            <el-form-item class="my-form-item" prop="xqksrq">
              <div
                class="my-form-item-label"
              >
                学期开始日期
                <span class="mustW">*</span>
              </div>
              <el-date-picker
                value-format="yyyy-MM-dd"
                v-model="formData.xqksrq"
                type="date"
                placeholder="请选择学期开始日期" 
                @blur="toLinkTime"
              >
              </el-date-picker>
            </el-form-item>
          </el-form-item>
          <el-form-item class="my-form-item" prop="xqjsrq">
              <div
                class="my-form-item-label"
              >
                学期结束日期
                <span class="mustW">*</span>
              </div>
              <el-date-picker
                value-format="yyyy-MM-dd"
                v-model="formData.xqjsrq"
                type="date"
                placeholder="请选择学期结束日期"
                @blur="toLinkTime"
              >
              </el-date-picker>
              <el-form-item class="my-form-item" prop="jqjsrq">
              <div
                class="my-form-item-label"
              >
                假期结束日期
                <span class="mustW">*</span>
              </div>
              <el-date-picker
                value-format="yyyy-MM-dd"
                v-model="formData.jqjsrq"
                type="date"
                placeholder="请选择假期结束日期"
              >
              </el-date-picker>
          </el-form-item>
            </el-form-item>
        </el-form>
      </div>
      <!-- <div>
        <el-form :inline="true" :model="formData" ref="formData" label-width="200px" class="demo-form-inline">
          <el-row>
            <el-col :span="6">
              <el-form-item
                label="学期名称"
                class="labelColor"
                :prop="formData.xqmc"
                :rules="[
                  { required: true, message: '请输入学期名称', trigger: 'blur' }
                ]"
              >
              </el-form-item>
            </el-col>
                <el-col :span="6">
                  <el-input v-model="formData.xqmc" placeholder="001"></el-input>
                </el-col>
                <el-form-item 
                  label="学期所在学年"
                  class="labelColor"
                  :prop="formData.xqszxn"
                  :rules="[
                    { required: true, message: '请输入学期所在学年', trigger: 'blur' }
                  ]"
                >
                  <el-col :span="6">
                    <el-input v-model="formData.xqmc" placeholder="001"></el-input>
                  </el-col>
                </el-form-item>
            <el-col :span="6">
              <el-input placeholder="001" v-model="formData.xqmc"></el-input>
            </el-col>
            <el-col :span="6">
              <div style="background: rgba(77, 129, 192, 0.1)">
                学期所在学年 <span>*</span>:
              </div>
            </el-col>
            <el-col :span="6">
              <el-input placeholder="001" v-model="formData.xqszxn"></el-input>
            </el-col>
          </el-row>
        </el-form>
        <el-row>
          <el-col :span="6">
            <div style="background: rgba(77, 129, 192, 0.1)">
              学期序号 <span>*</span>:
            </div>
          </el-col>
          <el-col :span="6">
            <el-input
              placeholder="001"
              v-model.number="formData.xqxh"
            ></el-input>
          </el-col>
          <el-col :span="6">
            <div style="background: rgba(77, 129, 192, 0.1)">
              学期开始日期 <span>*</span>:
            </div>
          </el-col>
          <el-col :span="6">
            <el-date-picker
              v-model="formData.xqksrq"
              type="date"
              placeholder="选择日期"
            >
            </el-date-picker>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <div style="background: rgba(77, 129, 192, 0.1)">
              学期结束日期 <span>*</span>:
            </div>
          </el-col>
          <el-col :span="6">
            <el-date-picker
              v-model="formData.xqjsrq"
              type="date"
              placeholder="选择日期"
            >
            </el-date-picker>
          </el-col>
          <el-col :span="6">
            <div style="background: rgba(77, 129, 192, 0.1)">
              假期结束日期 <span>*</span>:
            </div>
          </el-col>
          <el-col :span="6">
            <el-date-picker
              v-model="formData.jqjsrq"
              type="date"
              placeholder="选择日期"
            >
            </el-date-picker>
          </el-col>
        </el-row>
      </div> -->
      <div class="button-group" style="border:none">
        <div @click="submitForm" style="color: #f3b815;
          border: 1px solid #f3b815;
          background: #fff6ef;
          margin-right: 139px;">
          <div>保 存</div>
        </div>
        <div @click="resetForm" style="color: #ff3819;
          border: 1px solid #ff3819;
          background: #ffefef;">
          <div>取 消</div>
        </div>
      </div>
      <!-- <footer style="width: 210px;margin: 40px auto;">
        <el-button type="success" @click="submitForm">保 存</el-button>
        <el-button type="danger" @click="resetForm" style="margin-left:60px">取 消</el-button>
      </footer> -->
    </el-dialog>
  </div>
</template>

<script>
  import {
    reqCheckAllScore,
    reqAddNewXq,
    reqEditXq,
    reqUpdateXq,
    reqDeleteXq,
    selectByXqmc,
    reqCheckYearList,
    getYearIndex,
    selectTermByTime
  } from "@/api/admin1/check.js";
  export default {
    data() {
      return {
        xqxhList:[
          {
            label:'1',
            value:'1'
          },
          {
            label:'2',
            value:'2'
          },
          {
            label:'3',
            value:'3'
          }
        ],
        current: 1,
        size: 10,
        total: "",
        // 弹窗数据
        formData: {
          createname: "",
          createtime: "",
          jqjsrq: "",
          updatename: "",
          updatetime: "",
          xqjsrq: "",
          xqksrq: "",
          xqmc: "",
          xqszxn: "",
          xqxh: "",
        },
        xqxnList:[],
        rules: {
          xqmc: [
            { required: true, message: "请输入学期名称", trigger: "blur" },
          
          ],
          xqszxn: [
            { required: true, message: "请输入学期所在学年", trigger: "blur" },
        
          ],
          xqxh: [
            { required: true, message: "请输入学期序号", trigger: "blur" },
          
          ],
          xqksrq: [
            { required: true, message: "请选择学期开始日期", trigger: "blur" },
          
          ],
          xqjsrq: [
            { required: true, message: "请选择学期结束日期", trigger: "blur" },
          ],
          jqjsrq: [
            { required: true, message: "请选择假期结束日期", trigger: "blur" },
          ]
        },
        // 控制弹窗显示隐藏
        dialogVisible: false,
        //   控制弹窗的标题
        dialogTitle: "",
        //   列表数据
        tableData: [],
      };
    },
    beforeCreate(){
      // var y = new Date().getFullYear();  
      // var m = new Date().getMonth() + 1;  
      // m = m < 10 ? ('0' + m) : m;  
      // var dt = new Date().getDate();  
      // var d = new Date().getDate();  
      // d = d < 10 ? ('0' + d) : d;  
      // // this.todayDate = y + '-' + m + '-' + dt;
      // let dateToday = y + '-' + m + '-' + d;
    },
    created(){
    },
    mounted(){
    },
    methods: {
      //学期所在学年下拉框
      gradeAll(){
        let that = this;
        getYearIndex().then(res => {
          if(res.data.code == 200 && res.data.data){
            that.xqxnList = res.data.data;
          }
        });
      },
      //输入学期名称是否重复验证
      inputName(){
        selectByXqmc(this.formData.xqmc).then(res=>{
          if(res.status == 200 && res.data == false){
            this.$message({
              type:'error',
              message:'该学期名称已存在！'
            })
            this.formData.xqmc = '';
          }
        })
      },
      // 获取所有学期院历列表
      async getAllScore() {
        const result = await reqCheckAllScore(this.current, this.size);
        if (result.data.code == 200) {
          this.tableData = result.data.data.records;
          this.total = result.data.data.total;
        }
      },
      // 添加新学期按钮点击事件
      addNewXq() {
        this.formData.id = '';
        this.dialogVisible = true;
        this.dialogTitle = "添加新学期";
        Object.assign(this.$data.formData, this.$options.data().formData);
      },
      // 保存按钮点击事件
      async submitForm() {
        this.$refs['ruleForm'].validate((valid) => {
          if (valid) {
            selectTermByTime(this.formData.xqksrq,this.formData.xqjsrq,this.formData.id).then(res=>{
              if(res.data.data != 0){
                this.$message({
                  type:'error',
                  message:'学期开始日期及学期结束日期已被其他学期占用!'
                })
              } else {
                let result = null;
                if (!this.formData.id) {
                  result = reqAddNewXq(this.formData);
                } else {
                  result = reqUpdateXq(this.formData);
                }
                result.then(res =>{
                  if (res.data.code == 200) {
                    this.$message({ type: "success", message: "保存成功！" });
                    this.dialogVisible = false;
                    this.getAllScore();
                    return "ok";
                  }
                })
              }
            })
          } else {
            return false;
          }
        });
        
        // this.formData.xqksrq = this.getTime(this.formData.xqksrq);
        // this.formData.xqjsrq = this.getTime(this.formData.xqjsrq);
        // this.formData.jqjsrq = this.getTime(this.formData.jqjsrq);
      },
      // 取消点击按钮
      resetForm() {
        this.$refs.ruleForm.resetFields();
        this.dialogVisible = false;
        // Object.assign(this.$data.tableData, this.$options.data().tableData);
      },
      // 编辑点击按钮
      async editXq(id) {
        const result = await reqEditXq(id);
        if (result.data.code == 200) {
          this.dialogVisible = true;
          this.dialogTitle = "编辑";
          this.formData = result.data.data;
        }
      },
      // 点击页码更新数据
      handleCurrentChange(val) {
        this.current = val;
        this.getAllScore();
      },
      handleSizeChange(val) {
        this.size = val;
        this.getAllScore();
      },
      // 删除按钮点击事件
      async deleteXq(id) {
        const result = await reqDeleteXq(id);
        if (result.data.code == 200) {
          this.$message({ type: "success", message: "删除成功！" });
          this.getAllScore(this.tableData.length > 1 ? this.page : this.page - 1);
        }
      },
      delOne(id){
        this.$confirm('确认要删除吗？')
        .then(_ => {
          this.deleteXq(id);
        })
      },
      // 查看点击事件
      lookCalendar(row) {
        this.$router.push({
          path: "/admin/calendarManagement/calendar",
          query: { id: row.id, xq: row.xqmc},
        });
      },
      // 改变时间格式
      getTime(time) {
        var date = new Date(time);
        var y = date.getFullYear();
        var m =
          date.getMonth() + 1 < 10
            ? "0" + (date.getMonth() + 1)
            : date.getMonth() + 1;
        var d = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
        return y + "-" + m + "-" + d;
      },
    },
    mounted() {
      this.gradeAll()
      this.getAllScore();
    },
  };
</script>
<style lang="less" scoped>



  .manual-entry-container {
    .el-dialog__body {
      > div {
        width: 100%;
        border: 1px solid rgba(0, 76, 167, 0.8);
        border-radius: 6px;
        // margin: 0 auto;

        > div {
          border-bottom: 1px solid rgba(0, 76, 167, 0.39);

          &:last-child {
            border-bottom: none;
          }

          > div {
            display: flex;

            > div {
              height: 96px;
              display: flex;
              align-items: center;
              justify-content: center;

              &:nth-child(1) {
                width: 80%;

                text-align: center;
                font-size: 16px;
                font-weight: bold;
                color: #004ca7;
              }

              &:nth-child(1) {
                height: 100px;
              }
              > span {
                color: #fa5339;
                padding: 0 3px;
              }
            }
          }
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 43px;
    }

    /* .dialog-footer {
      > button {
        width: 95px !important;
        height: 36px;
        background: #fff6ef;
        border: 1px solid #f3b815;
        border-radius: 6px;
        background: rgba(255, 246, 239, 1);
        font-size: 18px;
        color: #f3b815;
      }
    } */
  }

  .assessment-container {
    width: 100% !important;
    .export-report-container {
      .el-dialog__body {
        padding: 64px 0 64px 50px;

        .el-radio {
          margin-right: 79px;
        }
      }

      .el-dialog__footer {
        padding-bottom: 103px;
      }
    }
    .block {
      position: relative;
      margin-top: 15px;
      .el-pagination {
        // width: 500px;
        // margin: 0 auto;
        position: absolute;
        right: 0;
      }
    }
    .import-report-container {
      .el-dialog__body {
        padding-left: 165px;
        padding-top: 71px;
        padding-bottom: 60px;

        > div {
          > span {
            font-size: 18px;
            font-weight: bold;
            line-height: 20px;
            color: #004ca7;
            vertical-align: middle;
          }

          > input {
            width: 254px;
            height: 25px;
            border: 1px solid #004ca7;
            opacity: 1;
            border-radius: 4px;
            padding-left: 5px;
            margin-right: 8px;
            color: #004ca7;
            vertical-align: middle;
          }

          > div {
            display: inline-block;
            font-size: 18px;
            padding: 1px 10px;
            border-radius: 4px;
            vertical-align: middle;
            cursor: pointer;

            &:nth-child(3) {
              color: rgba(2, 200, 108, 1);
              background: #f1fff8;
              border: 1px solid #02c86c;
              position: relative;
              margin-right: 20px;

              > input {
                width: 822px;
                position: absolute;
                left: -767px;

                cursor: pointer;
              }
            }

            &:nth-child(4) {
              color: rgba(82, 48, 233, 1);
              background: rgba(235, 230, 255, 1);
              border: 1px solid rgba(82, 48, 233, 1);
            }
          }
        }
      }

      .el-dialog__footer {
        padding-bottom: 76px;

        .green {
          padding: 1px 17px;
        }
        .red {
          border: 1px solid #ff3819;
          color: #ff3819;
          background: #ffefef;
        }
      }
    }
  }

  .plan-entry-table-container {
    margin-top: 15px;
    width: 100%;
    margin: 0 auto;
    .el-table td,
    .el-table th.is-leaf,
    .el-table--border,
    .el-table--group {
      border-color: #c7d7eb;
    }

    .el-table__header tr,
    .el-table__header th {
      padding: 0;
      height: 76px;
      background-color: #edf2f9;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
    }

    .el-table__body tr,
    .el-table__body td {
      padding: 0;
      height: 86px;
    }

    .el-checkbox__inner:hover {
      border-color: #004ca7;
    }

    .el-checkbox__inner {
      border: 1px solid #004ca7;
      border-radius: 0;
    }

    .el-checkbox__input.is-checked .el-checkbox__inner,
    .el-checkbox__input.is-indeterminate .el-checkbox__inner {
      background-color: #004ca7;
      border-color: #004ca7;
    }

    .el-checkbox__input.is-checked + .el-checkbox__label {
      color: #004ca7;
    }

    .el-checkbox.is-bordered.is-checked {
      border-color: #004ca7;
    }

    .el-checkbox__input.is-focus .el-checkbox__inner {
      border-color: #004ca7;
    }

    .export-button {
      background: #fff6ef;
      border: 1px solid #f3b815;
      width: auto;
      height: 28px;
      line-height: 28px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      padding: 3px 10px;
      box-sizing: border-box;

      > span {
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #f3b815;
      }

      > img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
      }
    }

    .lucj-import-button {
      .export-button;
      width: 116px;
      margin: 0 auto 12px;
      background: #f1fff8;
      border: 1px solid #02c86c;

      &:last-child {
        margin-bottom: 0px;
      }

      > span {
        color: #02c86c;
      }
    }

    .lucj-expot-button {
      .export-button;
      background: #fff6ef;
      border: 1px solid #f3b815;
      width: 81px;
      margin: 0 auto 12px;

      &:last-child {
        margin-bottom: 0px;
      }

      > span {
        color: #f3b815;
      }
    }
  }
  .plsc-button {
    height: 28px;
    background: #ffefef;
    border: 1px solid #fa5339;
    border-radius: 6px;
    color: #ff3819;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    img {
      width: 17px;
      height: 17px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-right: 5px;
    }
  }
  .cjrc-button {
    height: 28px;
    background: #f1f8fe;
    border: 1px solid #51aef6;
    border-radius: 6px;
    color: #51aef6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 28px;
    img {
      width: 14px;
      height: 14px;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      margin-right: 5px;
    }
  }
</style>

<style lang="less" scoped>
@import "../../../styles/print-entry.less";

.el-dialog__wrapper { ::v-deep .el-dialog {.el-dialog__body {padding: 50px 80px !important;}}}
.lucj-import-button{
  border-radius: 6px;
  cursor: pointer;
  img {
    width: 14px;
    height: 14px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
    top: 2px;
  }
}
.button-group {
    cursor: pointer;
    margin-top: 50px;
    text-align: center;

    > div {
      display: inline-block;
      font-size: 18px;
      padding: 6px 22px;
      border-radius: 6px;
    }
  }
  /deep/ .el-form-item__error {
    color: #F56C6C;
    font-size: 12px;
    line-height: 1;
    padding-top: 4px;
    position: absolute;
    top: 75%;
    left: 260px;
  }
  /deep/ .el-form-item__error:nth-child(odd) {
    color: #F56C6C;
    font-size: 12px;
    line-height: 1;
    padding-top: 4px;
    position: absolute;
    top: 75%;
    left: 51%;
  }
  .my-form-container {
    width: 1720px;
    height: 879px;
    margin: 40px auto 18px;
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 5px;
    .my-form-item {
      height: 85px;
      border-bottom: 1px solid rgba(0, 76, 167, 0.39);
      margin-bottom: 0;
      > div {
        display: flex;
        height: 100%;
        &:nth-child(2) {
          .my-form-item-label {
            border-left: 1px solid rgba(0, 76, 167, 0.39);
          }
        }
        .my-form-item-label{
          width: 220px;
          padding-left: 60px;
          background: rgba(0, 76, 167, 0.1);
          display: flex;
          flex: none;
          align-items: center;
          color: #004CA7;
          font-size: 16px;
          font-weight: bold;
          border-left: 1px solid rgba(0, 76, 167, 0.39);
          margin-left: -1px;
          .mustW {
            color: red;
          }
        }
        .el-form-item__content{
          display: flex;
        }
      }
    }
  }
  .el-input,.el-select {
    width: 220px;
    display: flex;
    justify-items: center;
    align-items: center;
    margin-left: 40px;
    margin-right: 40px;
  }

  .plan-entry-table-container {
    margin-top: 15px;

    .table-data {
      width: 100%;
      border: 0.8px solid #004ca7;
      border-radius: 9px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #004ca7;
    }
  }
  .assessment-container .search-container .search-button {
    width: 125px;
  }
  .assessment-container {
    .el-dialog__body{
      height: 355px;
    }
  }
  .el-icon-circle-plus-outline:before {
    padding-right: 5px;
  }

  @fontFamily:"Microsoft YaHei";
.xpaas-table-class {
  border: 1px solid #004ca7;
  border-radius: 9px;
  > ::v-deep div.el-table__header-wrapper {
    > table.el-table__header {
      > thead {
        > tr.xpaas-header-row-class {
          padding: 0;
          height: 76px;
          background-color: #edf2f9;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          line-height: 20px;
          color: #004ca7;
          > th.xpaas-header-cell-class {
            font-weight: bold;
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;
            > div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }
  > ::v-deep div.el-table__body-wrapper {
    > table.el-table__body {
      > tbody {
        > tr.xpaas-row-class {
          > td.xpaas-header-cell-class {
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;
            > div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
          > td.xpaas-cell-class {
            height: 76px;
            
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            > div.cell {
              font-weight: normal;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }
}
  /* .el-button {
    padding: 10px 12px;
  } */
/*   .el-button--success {
    border-color: #02c86c;
    background: #f1fff8;
    color: #02c86c;
  }
  .el-button--danger {
    border: 1px solid #fa5339;
    background: #ffefef;
    color: #ff3819;
  }
  .el-button--primary {
    border: 1px solid #51aef6;
    background: #f1f8fe;
    color: #51aef6;
  } */
  // .manual-entry-container .dialog-footer > .red {
  //   border: 1px solid #fa5339;
  //   background: #ffefef;
  //   color: #ff3819;
  //   margin-left: 10px;
  // }
</style>
